package com.zjj.learn.designmodel.work.template;

public abstract class MakeTea {

    public void make() {
        heatWater();
        this.takeTae();
        pourTea();
        waitTea();
        drinkTea();
        washPot();
    }

    private void pourTea() {
        System.out.println("倒茶");
    }

    /**
     * 拿茶叶要根据不同的茶拿不同的茶叶，由子类实现
     **/
    public abstract void takeTae();

    private void heatWater() {
        System.out.println("烧水");
    }

    private void waitTea() {
        System.out.println("等待");
    }

    private void drinkTea() {
        System.out.println("喝茶");
    }

    private void washPot() {
        System.out.println("洗锅");
    }


}
